<template>
  <div>
    <h2 class="center">其他资金变动</h2>
    <el-table v-loading="loading" element-loading-spinner="el-icon-loading" size="mini" class="small-size-table"
      :data="[data]" style="width: 100%; margin: 15px 0" :header-cell-style="getRowClass" highlight-current-row>
      <el-table-column prop="platformCashUpAmount" align="center">
        <template slot="header" slot-scope="{ column, $index }">
          <span>
            平台现金上分
            <el-tooltip class="item" effect="dark" content="统计当期被平台现金充值上分的总额" placement="top-start">
              <i class="el-icon-question"></i>
            </el-tooltip>
          </span>
        </template>
        <template slot-scope="scope">
          <FormItem :scope="scope" :updateData="updateData" />
        </template>
      </el-table-column>
      <el-table-column prop="platformCashDownAmount" align="center" label="平台现金下分">
        <template slot="header" slot-scope="{ column, $index }">
          <span>
            平台现金下分
            <el-tooltip class="item" effect="dark" content="统计当期被平台现金提现下分的总额" placement="top-start">
              <i class="el-icon-question"></i>
            </el-tooltip>
          </span>
        </template>
        <template slot-scope="scope">
          <FormItem :scope="scope" :updateData="updateData" />
        </template>
      </el-table-column>
      <el-table-column prop="platformOtherAdjustmentTotalAmount" align="center" label="其他资金变动总计">
        <template slot="header" slot-scope="{ column, $index }">
          <span>
            其他资金变动总计
          </span>
        </template>
        <template slot-scope="scope">
          {{ aomunt(scope.row.platformOtherAdjustmentTotalAmount) }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import FormItem from './formItem.vue'
import mixins from './mixin.js'
import list from '@/mixins/list'
export default {
  mixins: [list, mixins],
  components: {
    FormItem
  },
  props: {
    data: {
      type: Object,
      default: {}
    }
  },
  data() {
    return {

    }
  },
  // computed: {
  //   // 公式=会员俱乐部游戏输赢+会员鱿鱼游戏输赢+会员局服务费+服务费贡献分成
  //   dxClubTeamNetAmount() {
  //     const {
  //       platformCashDownAmount,
  //       platformCashUpAmount,
  //       platformOtherAdjustmentTotalAmount,
  //     } = this.data
  //     console.log(platformOtherAdjustmentTotalAmount,'./');
       
  //     if (!this.checkNums([
  //       platformCashDownAmount,
  //       platformCashUpAmount,
  //       platformOtherAdjustmentTotalAmount,
  //     ])) return '/'

  //     return (
  //       platformCashDownAmount +
  //       platformCashUpAmount +
  //       platformOtherAdjustmentTotalAmount
  //     )
  //   },
  // },
  // mounted() {
  //   this.$emit('update:data', {
  //     ...this.data,
  //     ...{
  //       tyTeamNetAmount: this.tyTeamNetAmount,
  //     }
  //   })
  // },
  // watch: {
  //   tyTeamNetAmount(val, old) {
  //     this.updateData(val, 'tyTeamNetAmount')
  //   },
  // }
}
</script>
<style lang="scss" scoped>
.center {
  text-align: center;
}
</style>
